@extends('layouts.default')
@section('content')
	@foreach($news as $new)
		<div class="row">
			<div class="panel news">
				<div class="panel-heading">
					<span class="panel-title"><i class="panel-title-icon fa fa-bullhorn"></i>
						<a title="Permanent Link to {{ $new->title }}" href="{{ URL::route('news', array('year' => strftime('%Y',strtotime($new->date)), 'month' => strftime('%m',strtotime($new->date)), 'day' => strftime('%d',strtotime($new->date)), 'permlink' => $new->permalien)) }}">
							{{ $new->title }}
						</a>
					</span>
					<span class="panel-date">
						<i class="panel-title-icon fa fa-calendar-o"></i>
						{{ strftime("%d %B",strtotime($new->date)) }}
					</span>
				</div>
				<div class="panel-body">
					{{ $new->description }}
				</div>
				<div class="panel-footer">
					Publié par {{ $new->user->username }}
					<span class="panel-comments">
						<i class="panel-title-icon fa fa-comments"></i>{{ $new->comments()->count() }}
					</span>
				</div>
			</div>
		</div>
	@endforeach
	{{ $news->links() }}
@stop